import request from '@/utils/request'

const assetApi = {
  projectDropdown: '/api/sysobject/getZC_XMDropList',
  village: '/api/zc_xqgl/getZC_XQGLList',
  setVillage: '/api/zc_xqgl/Post_ZC_XQGL',
  villageInfo: '/api/zc_xqgl/getZC_XQGLByID',
  queryVillage: '/api/zc_xqgl/judgeXQName',
  ridgepole: '/api/zc_xq_fwgl/getZC_XQ_LDListByXQID',
  setRidgepole: '/api/zc_xq_fwgl/Post_ZC_XQ_FWGL_LD',
  house: '/api/fyck_hhll/getLCListByAllID',
  queryFloorNumber: '/api/zc_xq_fwgl/judgeFWLCFH',
  houseInfo: '/api/zc_xq_fwgl/getZC_XQ_LCByID',
  setHouse: '/api/zc_xq_fwgl/Post_ZC_XQ_LC_FW',
  floor: '/api/fyck_hhll/getFYCK_HHLLList',
  location: '/api/gdzc_cfwz/getGDZC_CFWZList',
  setLocation: '/api/gdzc_cfwz/Post_GDZC_CFWZ',
  locationInfo: '/api/gdzc_cfwz/getGDZC_CFWZByID',
  queryLocation: '/api/gdzc_cfwz/judgeWZName',
  classification: '/api/gdzc_flgl/getGDZC_FLGLList',
  setClassification: '/api/gdzc_flgl/Post_GDZC_FLGL',
  classificationInfo: '/api/gdzc_flgl/getGDZC_FLGLByID',
  queryClassification: '/api/gdzc_flgl/judgeFLName',
  fixedAssetInto: '/api/gdzc_rkgl/getGDZC_RKGLList',
  setFixedAssetInto: '/api/gdzc_rkgl/Post_GDZC_RKGL',
  fixedAssetIntoInfo: '/api/gdzc_rkgl/getGDZC_RKGLByID',
  queryFixedAssetInto: '/api/gdzc_rkgl/judgeRKName',
  card: '/api/gdzc_zcgl/getGDZC_ZCKPList',
  cardInfo: '/api/gdzc_zcgl/getGDZC_ZCKPByID',
  setCard: '/api/gdzc_zcgl/Post_GDZC_ZCKP',
  splitMerge: '/api/zc_xq_fwgl/getZC_FW_CF_HBList',
  splitMergeInfo: '/api/zc_xq_fwgl/getZC_FW_CF_HBbyFWID',
  setSplitMerge: '/api/zc_xq_fwgl/Post_ZC_FW_CF_HB',
  land: '/api/zc_tdgl/getZC_TDGLList',
  landInfo: '/api/zc_tdgl/getZC_TDGLByID',
  setLand: '/api/zc_tdgl/Post_ZC_TDGL',
  queryLand: '/api/zc_tdgl/judgeTDName',
  houseParameter: '/api/zc_xq_fwgl/Get_ZYXY_FW_ZCTZ_List'
}

export function getProjectList (params) {
  return request({
    url: '/api/zc_xm/Get_ZC_XM_List',
    method: 'get',
    params
  })
}

export function setProject (data) {
  return request({
    url: '/api/zc_xm/Post_ZC_XM',
    method: 'post',
    data
  })
}

export function getProjectInfo (params) {
  return request({
    url: '/api/zc_xm/Get_ZC_XM_ByID',
    method: 'get',
    params
  })
}

export function getScheduleList (params) {
  return request({
    url: '/api/ZC_XMGC/Get_ZC_XMGC_List',
    method: 'get',
    params
  })
}

export function setSchedule (data) {
  return request({
    url: '/api/ZC_XMGC/Post_ZC_XMGC',
    method: 'post',
    data
  })
}

export function getScheduleInfo (params) {
  return request({
    url: '/api/ZC_XMGC/Get_ZC_XMGC_ByID',
    method: 'get',
    params
  })
}

export function getProjectDropdown (params) {
  return request({
    url: assetApi.projectDropdown,
    method: 'get',
    params
  })
}

export function getVillageList (params) {
  return request({
    url: assetApi.village,
    method: 'get',
    params
  })
}

export function setVillage (data) {
  return request({
    url: assetApi.setVillage,
    method: 'post',
    data
  })
}

export function getVillageInfo (params) {
  return request({
    url: assetApi.villageInfo,
    method: 'get',
    params
  })
}

export function queryVillageName (params) {
  return request({
    url: assetApi.queryVillage,
    method: 'get',
    params
  })
}

export function getRidgepoleList (params) {
  return request({
    url: assetApi.ridgepole,
    method: 'get',
    params
  })
}

export function setRidgepole (params) {
  return request({
    url: assetApi.setRidgepole,
    method: 'post',
    timeout: 0,
    data: params
  })
}

export function getHouseList (params) {
  return request({
    url: assetApi.house,
    method: 'get',
    params
  })
}

export function queryFloorNumber (params) {
  return request({
    url: assetApi.queryFloorNumber,
    method: 'get',
    params
  })
}

export function getHouseInfo (params) {
  return request({
    url: assetApi.houseInfo,
    method: 'get',
    params
  })
}

export function setHouse (params) {
  return request({
    url: assetApi.setHouse,
    method: 'post',
    data: params
  })
}

export function getFloorList (params) {
  return request({
    url: assetApi.floor,
    method: 'get',
    params
  })
}

export function getLocationList (params) {
  return request({
    url: assetApi.location,
    method: 'get',
    params
  })
}

export function setLocation (params) {
  return request({
    url: assetApi.setLocation,
    method: 'post',
    data: params
  })
}

export function getLocationInfo (params) {
  return request({
    url: assetApi.locationInfo,
    method: 'get',
    params
  })
}

export function queryLocationName (params) {
  return request({
    url: assetApi.queryLocation,
    method: 'get',
    params
  })
}

export function getClassificationList (params) {
  return request({
    url: assetApi.classification,
    method: 'get',
    params
  })
}

export function setClassification (params) {
  return request({
    url: assetApi.setClassification,
    method: 'post',
    data: params
  })
}

export function getClassificationInfo (params) {
  return request({
    url: assetApi.classificationInfo,
    method: 'get',
    params
  })
}

export function queryLocationClassificationName (params) {
  return request({
    url: assetApi.queryClassification,
    method: 'get',
    params
  })
}

export function getBusinessParameterList (params) {
  return request({
    url: '/api/zc_gdzc/getZC_SYLS_TZList',
    method: 'get',
    params
  })
}

export function getPropertyParameterList (params) {
  return request({
    url: '/api/zc_gdzc/getZC_WYLS_TZList',
    method: 'get',
    params
  })
}

/**
 * 固定资产台账
 * @description:
 * @param { Object }
 * @return { Object }
*/
export function getAssetParameterList (params) {
  return request({
    url: '/api/zc_gdzc/getZC_GDZC_TZList',
    method: 'get',
    params
  })
}

export function getFixedAssetIntoList (params) {
  return request({
    url: assetApi.fixedAssetInto,
    method: 'get',
    params
  })
}

export function setFixedAssetInto (data) {
  return request({
    url: assetApi.setFixedAssetInto,
    method: 'post',
    timeout: 0,
    data
  })
}

export function getFixedAssetIntoInfo (params) {
  return request({
    url: assetApi.fixedAssetIntoInfo,
    method: 'get',
    params
  })
}

export function queryFixedAssetInto (params) {
  return request({
    url: assetApi.queryFixedAssetInto,
    method: 'get',
    params
  })
}

export function getCardList (params) {
  return request({
    url: assetApi.card,
    method: 'get',
    params
  })
}

export function getCardInfo (params) {
  return request({
    url: assetApi.cardInfo,
    method: 'get',
    params
  })
}

export function setCard (data) {
  return request({
    url: assetApi.setCard,
    method: 'post',
    data
  })
}

export function getSplitMergeList (params) {
  return request({
    url: assetApi.splitMerge,
    method: 'get',
    params
  })
}

export function getSplitMergeInfo (params) {
  return request({
    url: assetApi.splitMergeInfo,
    method: 'get',
    params
  })
}

export function setSplitMerge (data) {
  return request({
    url: assetApi.setSplitMerge,
    method: 'post',
    data
  })
}

export function getLandList (params) {
  return request({
    url: assetApi.land,
    method: 'get',
    params
  })
}

export function getLandInfo (params) {
  return request({
    url: assetApi.landInfo,
    method: 'get',
    params
  })
}

export function setLand (data) {
  return request({
    url: assetApi.setLand,
    method: 'post',
    data
  })
}

export function queryLandName (params) {
  return request({
    url: assetApi.queryLand,
    method: 'get',
    params
  })
}

export function getHouseParameter (params) {
  return request({
    url: assetApi.houseParameter,
    method: 'get',
    params
  })
}
